class Student {
    //成员属性
    public String name;
    public int age;
    public String sex;
    //成员方法

    public Student(){
        this("liming",22,"nan");
    }
    public Student(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void Doclass(){
        System. out.println(this.name +"按时上课");
    }
    public void DoHomework(){
        System.out.println(this.name +"按时完成作业");
    }
    public void Exam(){
        System.out.println(this.name +"诚心考试");
    }
    public void Eat(){
        System.out.println(this.name +"好好吃饭");
    }
}